package com.sqlsession.database;

import com.sqlsession.DataBase;

import java.util.List;

public class CTable {
    private DataBase dataBase;
    /**
     * 数据库类型
     */
    private DbType dbType;
    /**
     * 表名称
     */
    private String name;

    /**
     * 表的注释
     */
    private String common;

    private List<CColumn> cColumns;

    public CTable(DataBase dataBase) {
        this.dataBase = dataBase;
        this.dbType = dataBase.getDbType();
    }

    public String getDesc() {
        return dataBase.getDesc();
    }

    public DataBase getDataBase() {
        return dataBase;
    }

    public void setDataBase(DataBase dataBase) {
        this.dataBase = dataBase;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCommon() {
        return common;
    }

    public void setCommon(String common) {
        this.common = common;
    }

    public List<CColumn> getcColumns() {
        return cColumns;
    }

    public void setcColumns(List<CColumn> cColumns) {
        this.cColumns = cColumns;
    }

    public DbType getDbType() {
        return dbType;
    }

    public void setDbType(DbType dbType) {
        this.dbType = dbType;
    }
}
